Home:ALL Converter>Clipboard data sort - Colon sorting issue

Clipboard data sort - Colon sorting issue

Ask Time:2020-02-24T00:54:04         Author:Josh Face

Json Formatter

I asked a question on Stack Overflow a few days ago asking for a solution for copying email support forms and pasting the data into the appropriate text fields on a form. I got an answer which solved my problem - until I went to go use the tool and realized a problem.

I am using this code:

'Service Plan Description
For i = 0 To lines.Count - 1
    If lines(i).StartsWith("Service Plan Desc. :") Then
        StartLine = i
        Exit For
    End If
Next
tbx_ServicePlanDescription.Text = lines(StartLine).Split(":"c)(1).Trim 'Put sorted data into textbox

And when I copy the following text into the clipboard to test the Service Plan textbox:

Maint:AbloEnterprise S/W AddOn (5)

It only pastes 'Maint' in the textbox because the code purposely removes the colons.

So my question is: What would be a way to overcome this?

Author:Josh Face,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/60364567/clipboard-data-sort-colon-sorting-issue
yy